
html,
body{
    width: 100%;
    height: 100%;
    font-size: 62.5%;
}

/* 取出竖向滚动条 */
html{
    overflow-y: hidden;
    overflow-x: hidden;
}

li{
    list-style-type: none;
}

a,input[type='button'],span{
    /*设置文本不可选中*/
    webkit-user-select: none;
    user-select: none;
}


/*                                             容器*/
.right-board{
    display: grid;
    grid-template-rows: 1fr 90% .7fr;
}

/*                                              右边 中心*/
.right-mid{
    display: flex;
    padding-left: 1rem;
}

/*                                              聊天-左*/
.chat-container{
    display: flex;
    flex-direction: column;
}

.chat-box{
    position: relative;
    flex-basis: 70%;
    flex-direction: column;
    align-items: center;
    /*background-color: rgba(238, 236, 236, 0.68);*/
    background-color: rgba(218, 217, 217, .4);
    /*background-color: rgb(236, 236, 236);*/
}

.friend-id{
    position: absolute;
    font-size: 1.8rem;
    left: calc(100% - 50%);
}

.chat-text{
    flex-basis: 30%;
}

.chat-text textarea{
    width: 100%;
    height: 17rem;
    padding-left: .6rem;
    font-size: 1.6rem;
    outline: none;
    resize: none;
    border: none;
    background-color: rgba(199, 173, 135, 0.1);
}

.chat-controller{
    height: 3rem;
}

.btn-chat{
    height: 100%;
    border: none;
    background-color: rgba(183, 183, 183,.2);
}

.btn-chat:hover{
    background-color: rgba(183, 183, 183,.4);
}

.btn-chat:first-of-type{
    transform: translateX(-1rem);
}

/*                                              聊天-右*/
.person-list{
    /* 设置滚动条*/
    overflow-x: hidden;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
    /*background-color: rgba(250, 250, 250, 0.94);*/
}
/* 设置滚动条*/
.person-list::-webkit-scrollbar{
    width: 0 !important;
}

.person{
    display: flex;
    flex-direction: row;
    width: 95%;
    height: 7rem;
    margin-left: 2.5%;
    cursor: pointer;
}

.person-hover:hover{
    background-color: rgba(218, 217, 217, .4) !important;
}

.person-img{
    display: inline-block;
    background-color: rgba(218, 217, 217, .4);
    /*height: 7rem;*/
    /*width: 7rem;*/
    border-radius: 50%;
}

@media screen and (max-width: 1199px ) and (min-width: 1050px){
    .person-img{
        height: 90%;
    }

}

@media screen and (min-width: 992px) and (max-width: 1050px){
    .person-img{
        display: none;
    }

    .person{
        height: 4.5rem;
    }

    .person-list{
        width: 20%;
    }
}

@media screen and (max-width: 991px){
    .person-img{
        display: none;
    }

    .person{
        height: 4.5rem;
    }

    .person-list{
        width: 20%;
    }
}

.person-name{
    display: inline-block;
    padding: .5rem;
    font-size: 1.8rem;
}
